In this folder, 
ATS_D.m and ATS_Dquality.m are used to compute the ATS and its standard error 
for independent cases by using CUSUM.

ATS_Dtime.m and ATS_Dquality_time.m are used to compute the ATS and its standard error 
for AR(1) cases by using CUSUM.

ATS_Dar2.m and ATS_Dar2quality.m are used to compute the ATS and its standard error 
for AR(2) cases by using CUSUM.

ATS_D_adap_rf.m and ATS_D_adap_rf_quality.m are used to compute the ATS and its standard error 
for independent cases by using the proposed method of Han and Tsung (2006).

ATS_D_adaptive.m and ATS_D_adptive_quality.m are used to compute the ATS and its standard error 
for independent cases by using the proposed method of Shu and Jiang (2006).

AVATS_D.m is used to compute the ATS for independent cases when the IC mean function and variance
function are known.

AVATS_Dtime.m is used to compute the ATS for AR(1) cases when the IC mean function, variance
function and phi are known.